//
//  SecondViewController.m
//  testpbl
//
//  Created by 黄权浩 on 15/10/29.
//  Copyright © 2015年 黄权浩. All rights reserved.
//

#import "SecondViewController.h"

@interface SecondViewController ()

@end

@implementation SecondViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

- (void)changeString:(changeString)block
{
    self.changestring = block;
}

- (IBAction)backBt:(id)sender {
    if (self.changestring != nil) {
        self.changestring(@"xxxx");
    }
    [self.navigationController popToRootViewControllerAnimated:YES];
}
@end
